<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:65:"/home/wwwroot/xichen.tv/public/../lib/admin/view/addon/index.html";i:1512877413;s:68:"/home/wwwroot/xichen.tv/public/../lib/admin/view/layout/default.html";i:1512877413;s:65:"/home/wwwroot/xichen.tv/public/../lib/admin/view/public/meta.html";i:1512877413;s:67:"/home/wwwroot/xichen.tv/public/../lib/admin/view/public/script.html";i:1512877413;}*/ ?>
<!DOCTYPE html>
<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta charset="utf-8">
<title><?php echo \think\Config::get('site_name'); ?>-后台管理-<?php echo config('zanpiancms.name'); ?>:<?php echo \think\Lang::get('zanpiancms_version'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/images/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/css/backend.min.css?v=<?php echo \think\Lang::get('zanpiancms_version'); ?>" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/js/html5shiv.js"></script>
  <script src="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var require = {config:<?php echo json_encode($config); ?>};
</script>

    </head>
    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>后台首页<small>Home</small></h1>
                            </section>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="<?php echo admin_url('admin/index/show'); ?>"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                <?php if(is_array($nav_list) || $nav_list instanceof \think\Collection || $nav_list instanceof \think\Paginator): $i = 0; $__LIST__ = $nav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <li><a <?php if(($vo['name'] != $nav_title['name']) and ($vo['child'] == 1)): ?>href="<?php echo admin_url($vo['name']); ?>"<?php else: ?>href="javascript:;"<?php endif; ?>><?php echo $vo['title']; ?></a></li>    
                                <?php endforeach; endif; else: echo "" ;endif; ?>                                     
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <div class="content">
                               
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em><?php echo $nav_title['title']; ?></em><?php echo $nav_title['remark']; ?></div>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a href="javascript:;" url="<?php echo admin_url('admin/addon/index'); ?>" class="btn btn-primary refurbish"><i class="fa fa-refresh"></i> </a> <button type="button" id="plupload-addon" class="btn btn-danger plupload" data-url="<?php echo admin_url('admin/addon/local'); ?>" data-mimetype="application/zip" data-multiple="false" initialized="true" style="position: relative; z-index: 1;"><i class="fa fa-upload"></i> 本地安装</button> <a href="javascript:;" class="btn btn-success btn-ajax" url="<?php echo admin_url('admin/addon/refresh'); ?>"><i class="fa fa-refresh"></i> 刷新插件缓存</a> <a class="btn btn-info downloaded" href="javascript:;" url="<?php echo admin_url('admin/addon/index'); ?>"><i class="fa fa-cloud"></i> 官方在线插件</a> <a class="btn btn-info downloaded" href="javascript:;" url="<?php echo admin_url('admin/addon/downloaded'); ?>"><i class="fa fa-laptop"></i> 本地安装插件</a></div>
              </div>
            </div>
          </div>
     <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">
    <div class="row row-flex" total="<?php echo $page['recordcount']; ?>">
    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
    <div class="col-sm-4 col-md-3">
        <div class="thumbnail addon">
            <a href="<?php if(!(empty($vo['demourl']) || (($vo['demourl'] instanceof \think\Collection || $vo['demourl'] instanceof \think\Paginator ) && $vo['demourl']->isEmpty()))): ?><?php echo $vo['demourl']; else: ?>javascript:;<?php endif; ?>" target="_blank"><img src="<?php if(!(empty($vo['image']) || (($vo['image'] instanceof \think\Collection || $vo['image'] instanceof \think\Paginator ) && $vo['image']->isEmpty()))): ?><?php echo $vo['image']; else: ?><?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/img/noaddon.gif<?php endif; ?>" class="img-responsive" alt="<?php echo $vo['title']; ?>" /></a>
            <div class="caption">
                <h4><?php echo $vo['title']; if(!(empty($vo['flag']) || (($vo['flag'] instanceof \think\Collection || $vo['flag'] instanceof \think\Paginator ) && $vo['flag']->isEmpty()))): ?> <?php echo $flag[$vo['flag']]; endif; ?></h4>
                <!--<p class="text-danger"><b><?php echo $vo['title']; ?></b></p>-->
                <p class="text-muted">作者: <?php echo $vo['author']; ?></p>
                <p class="text-muted">描述: <?php echo msubstr($vo['intro'],0,15); ?></p>
                <p class="text-muted">版本:<?php if(!(empty($addon[$vo['name']]) || (($addon[$vo['name']] instanceof \think\Collection || $addon[$vo['name']] instanceof \think\Paginator ) && $addon[$vo['name']]->isEmpty()))): if($vo['version'] != $addon[$vo['name']]['version']): ?>
                 <span class="label label-danger"><?php echo $addon[$vo['name']]['version']; ?></span> -&gt; <span class="label label-success"><?php echo $vo['version']; ?></span><?php else: ?><?php echo $vo['version']; endif; else: ?><?php echo $vo['version']; endif; ?></p>
                <?php if(!(empty($vo['uptime']) || (($vo['uptime'] instanceof \think\Collection || $vo['uptime'] instanceof \think\Paginator ) && $vo['uptime']->isEmpty()))): ?>
                <p class="text-muted">更新时间: <?php echo date('Y-m-d H:i:s',$vo['uptime']); ?></p>
                <?php endif; ?>
                <p class="operate"  data-name="<?php echo $vo['name']; ?>">
                <?php if(!(empty($addon[$vo['name']]) || (($addon[$vo['name']] instanceof \think\Collection || $addon[$vo['name']] instanceof \think\Paginator ) && $addon[$vo['name']]->isEmpty()))): if(!(empty($addon[$vo['name']]['config']) || (($addon[$vo['name']]['config'] instanceof \think\Collection || $addon[$vo['name']]['config'] instanceof \think\Paginator ) && $addon[$vo['name']]['config']->isEmpty()))): ?>
                <a href="javascript:;" class="btn btn-primary btn-config"><i class="fa fa-pencil"></i> 配置</a>
                <?php endif; if($addon[$vo['name']]['state'] == '1'): ?>
                <a href="javascript:;" class="btn btn-warning btn-disable" data-action="disable"><i class="fa fa-times"></i> 点击禁用</a>
                <?php else: ?>
                <a href="javascript:;" class="btn btn-success btn-enable" data-action="enable"><i class="fa fa-check"></i> 点击启用</a>
                <a href="javascript:;" class="btn btn-danger btn-uninstall"><i class="fa fa-times"></i> 卸载</a>
                <?php endif; else: ?>
                <a href="javascript:;" class="btn btn-primary btn-success btn-install"><i class="fa fa-cloud-download"></i> 安装</a> 
                <?php endif; ?>
                </p>
            </div>
        </div>
    </div>
   <?php endforeach; endif; else: echo "" ;endif; ?>
   </div>
             <?php if($page['pagecount'] > '1'): ?>
            <div class="fixed-table-pagination" style="overflow:hidden">
              <div class="pull-left pagination-detail"><span class="pagination-info">共<?php echo $page['recordcount']; ?>个插件 <?php echo $page['pageindex']; ?>/<?php echo $page['pagecount']; ?> </span><span class="page-list">每页显示 <?php echo $page['pagesize']; ?> 条数据</span></div>
              <div class="pull-right pagination">
                <ul class="pagination">
                  <?php echo $page['pagelist']; ?>
                </ul>
              </div>
            </div>
            <?php endif; ?>     
          </div>       
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
  </div>
</div>
</div>
<script id="conflicttpl" type="text/html">
    <div class="alert alert-dismissable alert-danger">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <strong>警告!</strong> 此插件中发现和现有系统中部分文件发现冲突！以下文件将会被影响，请备份好相关文件后再继续操作
    </div>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>文件</th>
            </tr>
        </thead>
        <tbody>
            <%for(var i=0;i < conflictlist.length;i++){%>
            <tr>
                <th scope="row"><%=i+1%></th>
                <td><%=conflictlist[i]%></td>
            </tr>
            <%}%>
        </tbody>
    </table>
</script>
  
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
        <script src="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/js/require.js" data-main="<?php echo $config['site']['cdnurl']; ?>admin/zanpiancms/js/require-backend.min.js?v=<?php echo \think\Lang::get('zanpiancms_version'); ?>"></script>
    </body>
</html>